{extend name="public/base" /}
{block name="title"}管理员列表{/block}

{block name="content"}
<h2 class="sub-header">管理员列表 <small class="badge"><?php echo $list->total(); ?> 条</small></h2>
<div>[ <a href="{:url('add')}">添加管理员</a> ]<br><br></div>

<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
<thead><tr class="info">
<th>ID</th>
<th>用户名</th>
<th>邮箱</th>
<th>状态</th>
<th>管理</th>
</tr></thead>
<tbody>
<?php if($list){foreach($list as $row){ ?><tr>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['email']; ?></td>
<td><?php echo $row['status_text']; ?></td>
<td><a href="{:url('edit')}?id=<?php echo $row['id']; ?>">修改</a><?php if($row['id']<>1){ ?> | <a onclick="delconfirm('{:url('del')}?id=<?php echo $row['id']; ?>')" href="javascript:;">删除</a><?php } ?></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

<div class="backpages">{$page}</div>
{/block}